<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num1=1,num2=1,he1=0,he2=0;
        while(num1<=100){
            if(num1%2==1){
                console.log(num1)
            }
            num1++
        }
        while(num2<=100){
            if(num2%2==0){
                he1+=num2;
            }
            num2++
        }
        console.log(he1);
        for(i=1;i<=100;i++){
            if(i%2==1){
                console.log(i)
            }
        }
        for(ii=1;ii<=100;ii++){
            if(ii%2==0){
                he2+=ii
            }
        }
        console.log(he2)
    </script>
</body>
</html>